﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Blog.Models.Entities;
using MvcEngine.Core.Validation;

namespace MvcEngine.Blog.Models.Entities
{
    public class BlogTagBase
    {
        public Guid Id { get; set; }

        public Guid BlogId { get; set; }

        [LengthValidator("TagNameLengthValidator", 50)]
        [RequiredFieldValidator("TagNameRequiredValidator")]
        public string Name { get; set; }

        [LengthValidator("TagSlugLengthValidator", 50)]
        [RequiredFieldValidator("TagSlugRequiredValidator")]
        public string Slug { get; set; }

        public DateTime CreatedDate { get; set; }

        public DateTime ModifiedDate { get; set; }
    }
}
